/**
 * For the license, see main.cpp file
 */

#ifndef CRONTIMER_H
#define CRONTIMER_H

#include <QObject>
#include <QTimer>
#include <QDebug>

class CronTimer : public QObject
{
	
	Q_OBJECT

private:
	QTimer *timer;

private slots:
	void doOnTimeout();

public:
	CronTimer(quint32 minuteInterval);
	virtual ~CronTimer();
	void startCron();
	void stopCron();
	void changeInterval(quint32 newMinuteInterval);
	QTimer* getTimer();

signals:
	void cronStarted();
	void cronStopped();
};

#endif
